package cn.mxh.pethspt.service;

import cn.mxh.pethspt.entity.Ding;

import java.sql.SQLException;
import java.util.List;

public interface DingService {
    /**
     * 添加交易订单
     * @param ding
     * @return
     */
    public boolean add(Ding ding) throws SQLException;

    /**
     * 修改订单详情
     * @param ding
     * @return
     * @throws Exception
     */
    public boolean update(Ding ding) throws Exception;

    /**
     * 查询所有订单
     * @return
     */
    public List<Ding> getAll();

    /**
     * 根据订单id查询
     * @param dingId
     * @return
     */
    public Ding getDingByid(Integer dingId);
}
